package com.benmei.ntlive.dao;

import com.benmei.ntlive.entity.McCourseSchedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.benmei.ntlive.entity.ClassRoom;
import org.springframework.stereotype.Component;

@Component
@Mapper
public interface ClassRoomDao {
    int insert(@Param("pojo") ClassRoom pojo);

    int insertSelective(@Param("pojo") ClassRoom pojo);

    int insertList(@Param("pojos") List<ClassRoom> pojo);

    int update(@Param("pojo") ClassRoom pojo);

    ClassRoom findById(Integer roomId);

    McCourseSchedule findMcCourseRoomById(Integer roomId);

    Integer findStarByRoomId(@Param("roomId")Integer roomId);

    void starSizePlusOne(@Param("roomId")Integer roomId);
}
